package org.jgs2001.jgsdemo01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * index控制器
 * */
@Controller
@RequestMapping("index")
public class IndexController {

    @GetMapping
    @ResponseBody
    public String hello(){
        return "hello world";
    }

    @GetMapping("page")
    public String page(){
        return "/index.html";
    }
}
